<?php 
echo $showtime=date("Y-m-d H:i:s");

//$client_ip = getenv('HTTP_CLIENT_IP'); 
//$cip = explode(".", $client_ip); 
//echo $cip[0] + $cip[1] +$cip[2] +$cip[3];

$ip=getenv("REMOTE_ADDR"); 
echo $ip;
?>